package com.xucia.jsponic.query;

import java.io.StringReader;
import java.lang.reflect.Method;

import com.xucia.jsponic.data.ObjectId;
import com.xucia.jsponic.data.Persistable;
import com.xucia.jsponic.datasource.DataSource;

import de.susebox.jtopas.Flags;
import de.susebox.jtopas.ReaderSource;
import de.susebox.jtopas.StandardTokenizer;
import de.susebox.jtopas.StandardTokenizerProperties;
import de.susebox.jtopas.Token;
import de.susebox.jtopas.Tokenizer;
import de.susebox.jtopas.TokenizerException;
import de.susebox.jtopas.TokenizerProperties;

public class OQLParser {
	String oqlString;
	Method method;
	Object[] parameters;
	DataSource source;
	int param = 0;
	public OQLParser(DataSource source, String oqlString, Object[] parameters) {
		this.source = source;
		this.oqlString = oqlString;
		this.parameters = parameters;
	}
/*	Pattern OQL_PARSE_PATTERN = Pattern.compile("(\\w*)|(\\W*)");
	private String nextIdentifier() {
		String identifier = m.group(1);
		m.find();
		return identifier;
	}
	
	private Expression parseExpression() {
		Expression expression = new IdentifierExpression(m.group(1));
		m.find();
		while (m.group(2).trim().equals(".")) {
			m.find();
			expression = new PropertyExpression(expression,m.group(1));
			m.find();
		}
		return expression;
	}
	Matcher m;*/
}
